05. Handling Photos
Handling Photos
Introduction to Handling Photos
At this point it shouldn't be a surprise that Expo provides a nice JavaScript abstraction over the native iOS and Android approaches to accessing photos from the device's photo gallery. The name of this property is ImagePicker
and it does exactly what you would expect: "Provides access to the system's UI for selecting images from the phone's photo library or taking a photo with the camera."
We won't be adding any of this functionality to the UdaciFitness app we're building, but in the next video we will walk through how to use ImagePicker
just in case you'll need it for a future project.
Photos Fun
SOLUTION:
- `ImagePicker.launchImageLibraryAsync`
Summary
In this section, you learned about Expo's ImagePicker
component to grab images from the phone's photo gallery. For more information, you can read the official documentation.